home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 6 code / TCP.sea / TCP / NewsWatcher / NW Source / Shared Code / Reusable Source / teutil.h < prev    next >
MacBinary  |  1995-01-06  |  1.8 KB  |  [TEXT/MPCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jan 5 21:10:23 1995, modified Thu Jan 5 21:10:23 1995, creator 'MPCC', type ASCII, 1081 bytes "teutil.h" , at 0x4b9 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 74 65 75 74 69 6c | 2e 68 00 00 00 00 00 00 |..teutil|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 04 39 00 | 00 01 9a ab 32 57 0f ab |......9.|....2W..|
|00000060| 32 57 0f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |2W......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ef cb 00 00 |........|........|
|00000080| 42 6f 6f 6c 65 61 6e 20 | 48 61 76 65 54 45 4f 75 |Boolean |HaveTEOu|
|00000090| 74 6c 69 6e 65 48 69 6c | 69 74 65 46 65 61 74 75 |tlineHil|iteFeatu|
|000000a0| 72 65 20 28 76 6f 69 64 | 29 3b 0d 42 6f 6f 6c 65 |re (void|);.Boole|
|000000b0| 61 6e 20 48 61 76 65 54 | 45 47 65 74 48 69 6c 69 |an HaveT|EGetHili|
|000000c0| 74 65 52 67 6e 20 28 76 | 6f 69 64 29 3b 0d 4f 53 |teRgn (v|oid);.OS|
|000000d0| 45 72 72 20 4d 79 54 45 | 53 65 74 54 65 78 74 20 |Err MyTE|SetText |
|000000e0| 28 50 74 72 20 74 65 78 | 74 50 74 72 2c 20 6c 6f |(Ptr tex|tPtr, lo|
|000000f0| 6e 67 20 6c 65 6e 67 74 | 68 2c 20 54 45 48 61 6e |ng lengt|h, TEHan|
|00000100| 64 6c 65 20 74 68 65 54 | 45 29 3b 0d 4f 53 45 72 |dle theT|E);.OSEr|
|00000110| 72 20 4d 79 54 45 49 6e | 73 65 72 74 20 28 50 74 |r MyTEIn|sert (Pt|
|00000120| 72 20 74 65 78 74 50 74 | 72 2c 20 6c 6f 6e 67 20 |r textPt|r, long |
|00000130| 6c 65 6e 67 74 68 2c 20 | 54 45 48 61 6e 64 6c 65 |length, |TEHandle|
|00000140| 20 74 68 65 54 45 29 3b | 0d 6c 6f 6e 67 20 4d 79 | theTE);|.long My|
|00000150| 54 45 47 65 74 53 63 72 | 61 70 4c 65 6e 20 28 76 |TEGetScr|apLen (v|
|00000160| 6f 69 64 29 3b 0d 76 6f | 69 64 20 4d 79 54 45 44 |oid);.vo|id MyTED|
|00000170| 65 6c 65 74 65 20 28 54 | 45 48 61 6e 64 6c 65 20 |elete (T|EHandle |
|00000180| 74 68 65 54 45 2c 20 42 | 6f 6f 6c 65 61 6e 20 63 |theTE, B|oolean c|
|00000190| 75 74 2c 20 42 6f 6f 6c | 65 61 6e 20 2a 65 78 74 |ut, Bool|ean *ext|
|000001a0| 72 61 53 70 61 63 65 44 | 65 6c 65 74 65 64 29 3b |raSpaceD|eleted);|
|000001b0| 0d 76 6f 69 64 20 4d 79 | 54 45 43 75 74 20 28 54 |.void My|TECut (T|
|000001c0| 45 48 61 6e 64 6c 65 20 | 74 68 65 54 45 29 3b 0d |EHandle |theTE);.|
|000001d0| 76 6f 69 64 20 4d 79 54 | 45 43 6f 70 79 20 28 54 |void MyT|ECopy (T|
|000001e0| 45 48 61 6e 64 6c 65 20 | 74 68 65 54 45 29 3b 0d |EHandle |theTE);.|
|000001f0| 76 6f 69 64 20 4d 79 54 | 45 50 61 73 74 65 20 28 |void MyT|EPaste (|
|00000200| 50 74 72 20 74 65 78 74 | 2c 20 73 68 6f 72 74 20 |Ptr text|, short |
|00000210| 6c 65 6e 2c 20 54 45 48 | 61 6e 64 6c 65 20 74 68 |len, TEH|andle th|
|00000220| 65 54 45 2c 20 73 68 6f | 72 74 20 6d 61 78 4c 65 |eTE, sho|rt maxLe|
|00000230| 6e 2c 0d 09 42 6f 6f 6c | 65 61 6e 20 2a 65 78 74 |n,..Bool|ean *ext|
|00000240| 72 61 53 70 61 63 65 41 | 64 64 65 64 49 6e 46 72 |raSpaceA|ddedInFr|
|00000250| 6f 6e 74 29 3b 0d 42 6f | 6f 6c 65 61 6e 20 50 74 |ont);.Bo|olean Pt|
|00000260| 49 6e 54 45 48 69 6c 69 | 74 65 52 67 6e 20 28 50 |InTEHili|teRgn (P|
|00000270| 6f 69 6e 74 20 77 68 65 | 72 65 2c 20 54 45 48 61 |oint whe|re, TEHa|
|00000280| 6e 64 6c 65 20 74 68 65 | 54 45 29 3b 0d 76 6f 69 |ndle the|TE);.voi|
|00000290| 64 20 53 75 62 74 72 61 | 63 74 54 45 48 69 6c 69 |d Subtra|ctTEHili|
|000002a0| 74 65 52 67 6e 20 28 52 | 67 6e 48 61 6e 64 6c 65 |teRgn (R|gnHandle|
|000002b0| 20 72 67 6e 2c 20 54 45 | 48 61 6e 64 6c 65 20 74 | rgn, TE|Handle t|
|000002c0| 68 65 54 45 29 3b 0d 76 | 6f 69 64 20 44 72 61 77 |heTE);.v|oid Draw|
|000002d0| 54 45 43 61 72 65 74 20 | 28 73 68 6f 72 74 20 6f |TECaret |(short o|
|000002e0| 66 66 73 65 74 2c 20 54 | 45 48 61 6e 64 6c 65 20 |ffset, T|EHandle |
|000002f0| 74 68 65 54 45 29 3b 0d | 42 6f 6f 6c 65 61 6e 20 |theTE);.|Boolean |
|00000300| 54 45 49 73 46 72 6f 6e | 74 4f 66 4c 69 6e 65 20 |TEIsFron|tOfLine |
|00000310| 28 73 68 6f 72 74 20 6f | 66 66 73 65 74 2c 20 54 |(short o|ffset, T|
|00000320| 45 48 61 6e 64 6c 65 20 | 74 68 65 54 45 29 3b 0d |EHandle |theTE);.|
|00000330| 73 68 6f 72 74 20 4d 79 | 54 45 47 65 74 4f 66 66 |short My|TEGetOff|
|00000340| 73 65 74 20 28 50 6f 69 | 6e 74 20 77 68 65 72 65 |set (Poi|nt where|
|00000350| 2c 20 54 45 48 61 6e 64 | 6c 65 20 74 68 65 54 45 |, TEHand|le theTE|
|00000360| 29 3b 0d 76 6f 69 64 20 | 4d 79 54 45 41 63 74 69 |);.void |MyTEActi|
|00000370| 76 61 74 65 20 28 54 45 | 48 61 6e 64 6c 65 20 74 |vate (TE|Handle t|
|00000380| 68 65 54 45 29 3b 0d 73 | 68 6f 72 74 20 47 65 74 |heTE);.s|hort Get|
|00000390| 54 45 50 61 67 65 48 65 | 69 67 68 74 20 28 54 45 |TEPageHe|ight (TE|
|000003a0| 48 61 6e 64 6c 65 20 74 | 68 65 54 45 29 3b 0d 73 |Handle t|heTE);.s|
|000003b0| 68 6f 72 74 20 4d 79 47 | 65 74 43 6c 69 6b 53 74 |hort MyG|etClikSt|
|000003c0| 75 66 66 20 28 54 45 48 | 61 6e 64 6c 65 20 74 68 |uff (TEH|andle th|
|000003d0| 65 54 45 29 3b 0d 76 6f | 69 64 20 54 45 41 72 72 |eTE);.vo|id TEArr|
|000003e0| 6f 77 4b 65 79 20 28 63 | 68 61 72 20 74 68 65 43 |owKey (c|har theC|
|000003f0| 68 61 72 2c 20 73 68 6f | 72 74 20 6d 6f 64 69 66 |har, sho|rt modif|
|00000400| 69 65 72 73 2c 20 54 45 | 48 61 6e 64 6c 65 20 74 |iers, TE|Handle t|
|00000410| 68 65 54 45 2c 20 0d 09 | 73 68 6f 72 74 20 70 61 |heTE, ..|short pa|
|00000420| 67 65 48 65 69 67 68 74 | 2c 20 45 76 65 6e 74 52 |geHeight|, EventR|
|00000430| 65 63 6f 72 64 20 2a 70 | 72 65 76 45 76 65 6e 74 |ecord *p|revEvent|
|00000440| 2c 20 73 68 6f 72 74 20 | 2a 73 63 72 6f 6c 6c 49 |, short |*scrollI|
|00000450| 6e 74 6f 56 69 65 77 29 | 3b 0d 42 6f 6f 6c 65 61 |ntoView)|;.Boolea|
|00000460| 6e 20 49 73 41 72 72 6f | 77 4b 65 79 20 28 63 68 |n IsArro|wKey (ch|
|00000470| 61 72 20 74 68 65 43 68 | 61 72 29 3b 0d 76 6f 69 |ar theCh|ar);.voi|
|00000480| 64 20 4d 79 54 45 43 6c | 69 63 6b 20 28 50 6f 69 |d MyTECl|ick (Poi|
|00000490| 6e 74 20 74 68 65 50 74 | 2c 20 42 6f 6f 6c 65 61 |nt thePt|, Boolea|
|000004a0| 6e 20 65 78 74 65 6e 64 | 2c 20 54 45 48 61 6e 64 |n extend|, TEHand|
|000004b0| 6c 65 20 68 54 45 29 3b | 0d 00 00 00 00 00 00 00 |le hTE);|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000510| 00 02 00 00 07 9e ff ff | ff ff ff ff 00 02 00 00 |........|........|
|00000520| 07 b2 ff ff 00 00 03 7e | 06 75 6e 75 73 65 64 ff |.......~|.unused.|
|00000530| 08 74 65 75 74 69 6c 2e | 68 00 02 00 00 00 54 45 |.teutil.|h.....TE|
|00000540| 58 54 4d 50 43 43 01 00 | 01 04 01 00 00 00 00 00 |XTMPCC..|........|
|00000550| 00 00 54 45 58 54 4d 50 | 43 43 01 00 01 04 01 00 |..TEXTMP|CC......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 aa 4f 8b 91 00 00 | 04 39 00 00 01 9a 00 00 |...O....|.9......|
|00000580| 08 e6 ff ff 00 00 00 00 | 00 02 00 00 08 fa ff ff |........|........|
|00000590| 00 00 00 00 00 00 04 70 | 09 0e ff ff 00 00 00 00 |.......p|........|
|000005a0| 00 02 00 00 09 12 ff ff | ff ff 00 00 00 02 06 75 |........|.......u|
|000005b0| 6e 75 73 65 64 00 01 a0 | 00 1d 00 00 01 26 ff fe |nused...|.....&..|
|000005c0| 00 00 00 94 00 1d 00 00 | 01 30 ff ff 00 00 00 9d |........|.0......|
|000005d0| 00 1d 00 00 02 14 ff ff | 00 00 02 3e 00 1d 00 00 |........|...>....|
|000005e0| 02 1c ff ff 00 00 02 3e | 00 1d 00 00 02 22 ff ff |.......>|....."..|
|000005f0| 00 00 01 4b 00 1d 00 00 | 02 7e ff ff 00 00 00 6c |...K....|.~.....l|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 03 | 00 04 00 8e 00 13 01 86 |........|........|
|00000630| 02 72 00 8e 00 13 01 86 | 02 72 ab d0 51 17 00 00 |.r......|.r..Q...|
|00000640| 04 38 00 00 04 38 00 00 | 00 8c 01 00 00 00 00 04 |.8...8..|........|
|00000650| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000660| 00 00 00 46 00 47 6f 58 | 0b 64 00 00 00 1c 00 46 |...F.GoX|.d.....F|
|00000670| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000680| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000690| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+